POV-Ray : Newsgroups : povray.newusers : reset/strip textures? : reset/strip textures? Server Time
26 Jun 2024 16:17:36 EDT (-0400)
  reset/strip textures?  
From: Rafal 'Raf256' Maj
Date: 9 Jan 2005 00:28:38
Message: <Xns95D941FDFD3F8raf256com@203.29.75.35>
Hi,
if I have an object with already have some texture, how can I discard all 
texture settings from it (strip texture), and apply a new texture to it?

Example:


#declare obj = 
union {
  sphere { -x 1 pigment { rgb x } } // ((B))
  sphere { +x 1 pigment { rgb y } } // ((C))
  sphere { +y 1 }  sphere { -z .1 }
  pigment { rgb .5 }
  scale 100 rotate y*30
  translate y*100
}

object { 
  obj 
  pigment { rgb 1 } // ((A))
}

and I would like the object to be entire white - rgb 1. Currently the line 
((A)) do not change red and green texture in ((B)) and ((C)) 


Rest part of minimal example scene:

plane { y,0 pigment { rgbf .8 } finish { diffuse 0 ambient 1 } no_shadow }
camera { location <100,70,-500>*1.3 look_at y*50 }
light_source { <1000,0,-15000> rgb 1 }
light_source { <1000,1000,-150> rgb 1 }





-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.